<div class="wrapper">
  <?php $this->partial('Common/mainHeader');?>

  <?php $this->partial('Common/mainSiderbar');?>

  <div class="content-wrapper">
    <section class="content-header">
          <h1>开店</h1>
      <ol class="breadcrumb">
        <li><a href="/"><i class="fa fa-fw fa-home"></i> 首页</a></li>
        <li><a href="javascript:void(0);">团队推荐</a></li>
        <li class="active">开店</li>
      </ol>
    </section>

    <div class="content">
      <div class="row">
        <div class="col-md-6" style="margin:auto;float: none;">
          <div class="clear_f"></div>
            <div class="modal-content">
              <form role="form" action="/service/center" method="post" class="form-horizontal">
                <div class="modal-header"><h4 class="modal-title">申请服务中心</h4></div>
                  <div class="modal-body">
                    <div class="form-group">
                      <label class="col-sm-2 control-label">申请服务中心：</label>
                      <div class="col-sm-10">
                        <input type="text" class="form-control" value="<?php echo $currentUser['real_name'] . $currentUser['user_code']; ?>" disabled>
                        <input type="hidden" name="user_id" value="<?php echo $currentUser['user_id']; ?>"/>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-sm-2 control-label">申请人：</label>
                      <div class="col-sm-10"><input type="text" class="form-control" name="real_name" placeholder="姓名"/></div>
                    </div>

                    <div class="form-group">
                      <label class="col-sm-2 control-label">申请店铺类型：</label>
                      <div class="col-sm-10">
                        <select class="form-control" name="shop_level">
                          <option value="2">代理</option>
                          <option value="3">店代理</option>
                        </select>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-sm-2 control-label">联系方式：</label>
                      <div class="col-sm-10"><input type="text" class="form-control" name="telphone" placeholder="电话"/></div>
                    </div>

                    <div class="form-group">
                      <label class="col-sm-2 control-label">地址</label>
                      <div class="col-sm-10 row" id="selectAddress">
                        <div class="col-sm-4">
                          <select name="province_code" class="form-control"></select>
                        </div>
                        <div class="col-sm-4">
                          <select name="city_code" class="form-control"></select>
                        </div>
                        <div class="col-sm-4">
                          <select name="district_code" class="form-control"></select>
                        </div>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-sm-2 control-label">详细地址：</label>
                      <div class="col-sm-10"><input type="text" class="form-control" name="address_detail"/></div>
                    </div>
                  </div>

                  <div class="modal-footer"><button type="submit" class="btn btn-primary">确定申请</button></div>
                </form>
              </div>
          </div>
        </div>
    </div>
  </div>

  <?php $this->partial('Common/mainFooter');?>
</div>

<?php $this->partial('Common/mainScript');?>
<script type="text/javascript" charset="utf-8" src="/node_modules/distpicker/dist/distpicker.min.js"></script>
<script type="text/javascript">
  $(document).ready(function() {
    $("#selectAddress").distpicker({valueType: "code"});
  });
</script>